<%@ page pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://www.ld.com/shield/tags" prefix="shield"%>
<%@ page trimDirectiveWhitespaces="true" %>
<fmt:setLocale value="zh_CN"/>
<%-- 权限判断 --%>
<shield:permssion type="button">
<div class="show-info">
	<!-- validate表示验证容器，data-position表示提示显示方式  class="validate" data-position="right_out" -->
	<form action="${ctxPathA}/system/user/setRoles" method="post" autocomplete="off" >
		<shield:token/>
	    <input id="id" name="id" type="hidden" maxlength="100" value="${model.id }">
	    <table class="tab-show">
	    	<colgroup>
	    		<col width="150">
	    		<col width="">
	    	</colgroup>
			<tr>
		    	<th>
	            	<label>登录账号：</label>
	        	</th>
	         	<td>${model.loginCode}</td>
			</tr>
	        <tr>
		    	<th>
	            	<label>用户昵称：</label>
	        	</th>
	         	<td>${model.userName}</td>
			</tr>
	        <tr>
		    	<th>
	            	<label><font color="red">*</font>角色：</label>
	        	</th>
	         	<td>
<c:forEach var="role" items="${roles }">
	         		<input type="checkbox" class="check" value="${role.id }" name="roleId" ${role.checked==1?'checked':'' }>${role.name }
</c:forEach>	         		
	         	</td>
			</tr>
	    </table>
	    <div class="taCenter">
			<input class="button" type="submit" value="提交"/>
	    	<input class="button default" type="reset" value="重置"/>
	    </div>
	</form>
</div>
</shield:permssion>